<html>
<head><meta charset="utf-8"><title>errors building clang · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/errors.20building.20clang.html">errors building clang</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="197805553"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/errors%20building%20clang/near/197805553" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/errors.20building.20clang.html#197805553">(May 16 2020 at 17:20)</a>:</h4>
<p>Anybody know what's up with this?</p>
<div class="codehilite"><pre><span></span><code>/home/nmatsakis/versioned/rust-0/src/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:3341:18: warning: assignment from temporary initializer_list does not extend the lifetime of the underlying array [-Winit-list-lifetime]
 3341 |       BaseOps = {};
      |                  ^
/home/nmatsakis/versioned/rust-0/src/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:3347:18: warning: assignment from temporary initializer_list does not extend the lifetime of the underlying array [-Winit-list-lifetime]
 3347 |       BaseOps = {};
      |
</code></pre></div>



<a name="197805563"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/errors%20building%20clang/near/197805563" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/errors.20building.20clang.html#197805563">(May 16 2020 at 17:20)</a>:</h4>
<p>er, those are warnings, but I'm getting a lot of random errors too</p>



<a name="197805565"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/errors%20building%20clang/near/197805565" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/errors.20building.20clang.html#197805565">(May 16 2020 at 17:20)</a>:</h4>
<div class="codehilite"><pre><span></span><code>/home/nmatsakis/versioned/rust-0/src/llvm-project/llvm/include/llvm/IR/PatternMatch.h:440:20: error: ‘llvm::ICmpInst::PredicateKind’ has not been declared
  440 |     case ICmpInst::PredicateKind::ICMP_SGE:
      |                    ^~~~~~~~~~~~~
/home/nmatsakis/versioned/rust-0/src/llvm-project/llvm/include/llvm/IR/PatternMatch.h:442:20: error: ‘llvm::ICmpInst::PredicateKind’ has not been declared
  442 |     case ICmpInst::PredicateKind::ICMP_SLT:
      |                    ^~~~~~~~~~~~~
/home/nmatsakis/versioned/rust-0/src/llvm-project/llvm/include/llvm/IR/PatternMatch.h:444:20: error: ‘llvm::ICmpInst::PredicateKind’ has not been declared
  444 |     case ICmpInst::PredicateKind::ICMP_SLE:
      |                    ^~~~~~~~~~~~~
</code></pre></div>



<a name="197815103"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/errors%20building%20clang/near/197815103" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mark-i-m <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/errors.20building.20clang.html#197815103">(May 16 2020 at 21:02)</a>:</h4>
<p>What version of the compiler are you using? I find that when I upgrade gcc, I often get tons of extra warnings when compiling Linux, so it seems plausible to happen for other large C software projects.</p>



<a name="197911553"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/errors%20building%20clang/near/197911553" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/errors.20building.20clang.html#197911553">(May 18 2020 at 09:46)</a>:</h4>
<div class="codehilite"><pre><span></span><code>&gt; gcc --version
gcc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

&gt; clang --version
clang version 9.0.0-2 (tags/RELEASE_900/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
</code></pre></div>



<a name="197911820"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/errors%20building%20clang/near/197911820" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/errors.20building.20clang.html#197911820">(May 18 2020 at 09:50)</a>:</h4>
<p><em>Oh</em></p>



<a name="197911825"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/errors%20building%20clang/near/197911825" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/errors.20building.20clang.html#197911825">(May 18 2020 at 09:50)</a>:</h4>
<p>I think I have some local edits :)</p>



<a name="197911834"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/errors%20building%20clang/near/197911834" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/errors.20building.20clang.html#197911834">(May 18 2020 at 09:50)</a>:</h4>
<p>search-and-replace gone awry</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>